package com.graduation.roombooking.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.graduation.roombooking.dto.AppletCompanyList;
import com.graduation.roombooking.dto.DropDownBoxDTO;
import com.graduation.roombooking.dto.SysCompanyDTO;
import com.graduation.roombooking.pojo.Company;
import com.graduation.roombooking.vo.AppletCompanyVO;
import com.graduation.roombooking.vo.CompanyUnionQueryVo;
import com.graduation.roombooking.vo.UpdateCompanyVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ZhaoXinYi
 * @since 2022-04-30
 */
@Mapper
public interface CompanyMapper extends BaseMapper<Company> {


    List<SysCompanyDTO> getAll();

    List<DropDownBoxDTO> companyDropDownBox();

    //根据部门名称获取部门信息
    SysCompanyDTO getCompanyByName(String companyName);

    List<SysCompanyDTO> unionQuery(CompanyUnionQueryVo companyUnionQueryVo);

    int updateCompany(UpdateCompanyVo updateCompanyVo);

    int addOne(Company company);

    List<AppletCompanyList> getAppletCompanyList(AppletCompanyVO appletCompanyVO);
}
